package com.platform.usercenter.domain.vo;

import lombok.Data;

@Data
public class LeaderInfoVO {

    private String index;

    /**
     * 用户id
     */
    private String leaderId;

    /**
     * 用户名称
     */
    private String leaderName;

    /**
     * 用户电话
     */
    private String leaderPhone;

    /**
     * 部门id
     */
    private String deptId;

    /**
     * 部门名称
     */
    private String deptName;

     @Override
    public boolean equals(Object o) {
        if (o == this) return true;
        if (!(o instanceof LeaderInfoVO)) return false;
         LeaderInfoVO user = (LeaderInfoVO) o;
        return user.getLeaderName().equals(leaderName);
    }

    @Override
    public int hashCode() {
        return leaderName.hashCode();
    }
}

